package com.xiaomi.service.Impl;


import com.xiaomi.dao.GuanliMapper;
import com.xiaomi.entity.Guanli;
import com.xiaomi.service.GuanliService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName GuanliServicelmpl
 * @Description TODO
 * @Author HP
 * @Date 2021/11/28 15:04
 */
@Service
public class GuanliServicelmpl implements GuanliService {
    @Resource
    GuanliMapper guanliMapper;

    @Override
    public List<Guanli> selectAll(Map<String, Object> pars) {
        return guanliMapper.selectAll(pars);
    }

    @Override
    public int count(Map<String, Object> pars) {
        return guanliMapper.count(pars);
    }

    @Override
    public int add(Guanli guanli) {
        return guanliMapper.add(guanli);
    }

    @Override
    public int del(int id) {
        return guanliMapper.del(id);
    }

    @Override
    public int update(Guanli guanli) {
        return guanliMapper.update(guanli);
    }
}
